<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.boxin.ims.modules.wechat.entity.Product" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN" manifest="/misc/wei_cache_new.manifest">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="format-detection" content="telephone=no" />
<title>订单列表</title>

<link href="${ctxStatic }/site/themes/DianShangMuBan/css/boilerplate.css" rel="stylesheet" type="text/css">
<link href="${ctxStatic }/site/themes/DianShangMuBan/css/css.css" rel="stylesheet" type="text/css">
<script src="${ctxStatic }/site/themes/DianShangMuBan/js/jquery.min.js"></script>

</head>
<body>

<div class="gridContainer clearfix"  style="margin-bottom:55px; background-color:#f3f3f3" >
  <div id="LayoutDiv1">
  <c:forEach items="${goodsOrderList }" var="goodsOrder">
    <div style="background-color:#FFF; width:100%; float:left">
      <div style="width:90%; height:100%;">
        <dl class=" fenleilist2">
          <dt>订单号：${goodsOrder.orderNo }</dt>
          <dt>订单金额：<font color="#FF0000">￥<fmt:formatNumber value="${goodsOrder.price/100 }" pattern="##.##"  minFractionDigits="2"/></font></dt>
          <dt>下单时间：<fmt:formatDate value="${goodsOrder.createTime }" type="date"/></dt>
        </dl>
        <dl class=" fenleilist2"  onclick="window.location.href='${ctxFront }/site/shopping/detailGoodOrder?uid=${uid}&wechatId=${wechatId}&orderId=${goodsOrder.id}'">
          <dt style="float:left; width:16%; "><img src="${ctxUser }/product/${goodsOrder.product.indexPic}" width="60" height="60"></dt>
          <dt style="float:left; width:75%; padding-left:3%;  padding-top:3%;"> 
          	<span style="font-size:15px; float:left">${goodsOrder.name }</span> 
          </dt>
          <dt style="float:left; width:3%; padding-left:3%; padding-top:3%;">
          	<span class="icon_carrot_right"></span>
          </dt>
        </dl>
        <dl  class=" fenleilist2">
          <dt>
          	<font color="#FF0000">订单状态：</font>
		  	   <c:if test="${goodsOrder.status==0 }">
			   		待支付
			   		<a href="${ctxFront }/site/shopping/createPay?uid=${uid }&wechatId=${wechatId }&productId=${goodsOrder.product.id }&productNumber=${goodsOrder.productNumber }">去支付</a>
			   </c:if>
			   <c:if test="${goodsOrder.status==2 }">
			   		待收货
			   		<a href="${ctxFront }/site/shopping/receipt?uid=${uid}&wechatId=${wechatId}&orderId=${goodsOrder.id}">确认收货</a>
			   </c:if>
			   <c:if test="${goodsOrder.status==3 }">
			  		交易完成 
  			   </c:if>
		  </dt>
        </dl>
      </div>
    </div>
  </c:forEach>
  </div>
<%--   <footer class=" clear backfoot">
    <ul>
      <li><span class="icon_house_alt" ></span><br>
        <span>首页</span></li>
      <li> <span class="icon_ul"></span><br>
        <span>分类</span></li>
      <li> <span class="icon_shop"></span>
          	<c:if test="${tatol eq 0 }">
				<div class="circle" style="top: 20%;left: 65%; text-align:center; color:#FFF; display:none;">
			   		<span id="tatolNum">${tatol}</span>
				</div>
			</c:if>
			<c:if test="${tatol ne 0 }">
				<div class="circle" style="top: 20%;left: 65%; text-align:center; color:#FFF;">
			   		<span id="tatolNum">${tatol}</span>
				</div>
			</c:if>
		<br>
        <span>购物车</span></li>
      <li class="onclick"> <span class="icon_people"></span><br>
        <span>我的</span></li>
    </ul>
  </footer> --%>
</div>
  <c:set var="choose" value="4"/>
 <%@ include file="/WEB-INF/views/modules/site/themes/DianShangMuBan/foot.jsp"%>
</body>
</html>

